<table width="100%" cellspacing="0" cellpadding="0" border="0">
  <tbody>
    <tr>
      <td>
      </td>
    </tr>
    <tr>
      <td>
        <span id="ELEMENT-TYP-DOC-HTML-span" class="document-body-span">
          <div id="frameWrapperDone">
           <table align="center">
  <tbody>
    <tr>
      <td>
      <?php 
      if($warning_string){
      	echo '<h2 id="cartEmptyText">'.$warning_string.'</h2>';
      }
      if($ordersArray){
      	//var_dump($ordersArray);
?><table  border="1" cellpadding="1" cellspacing="1" id="trackorders" width="778">
<caption><h2><?php echo OVERVIEW_PREVIOUS_ORDERS; ?></h2></caption>
    <tr class="tableHeading">
    <th scope="col"><?php echo TABLE_HEADING_ORDER_NUMBER; ?></th>
    <th scope="col"><?php echo TABLE_HEADING_DATE; ?></th>
    <th scope="col"><?php echo TABLE_HEADING_SHIPPED_TO; ?></th>
    <th scope="col"><?php echo TABLE_HEADING_STATUS; ?></th>
    <th scope="col"><?php echo TABLE_HEADING_TRACK_INFO; ?></th>
  </tr>  <tr>
   <td width="50px"><?php echo TEXT_NUMBER_SYMBOL . $ordersArray['orders_id']; ?></td>
    <td width="90px"><?php echo zen_date_short($ordersArray['date_purchased']); ?></td> 
    <td><address><?php echo zen_output_string_protected($ordersArray['order_name']) . '<br />' . $ordersArray['order_country']; ?></address></td>
    <td width="90px"><?php echo $ordersArray['orders_status_name']; ?></td>
    <td width="250px"><?php echo $ordersArray['track_order_info']; ?></td>

  </tr>
  <?php 
      	
      }else{
      ?>
        <form method="post" name="frmQuery" id="frmQuery">
          <input type="hidden" name="action" value="find">
          <table>
            <tbody>
              <tr>
                <td valign="top" colspan="3">
                  <br>
                  <b>
                    To track your order, please enter any information you have with any combination
                    below and click GO:
                  </b>
                  <br>
                  <br>
                </td>
              </tr>
              <tr>
                <td width="200">
                  E-mail:
                </td>
                <td width="280">
                  <input type="text" name="txtEmail1" style="width: 200px;" id="txtEmail1" class="TextBox">
                  &nbsp;(Required)
                </td>
                <td width="100">
                </td>
              </tr>
              <tr>
                <td>
                 Order ID:
                </td>
                <td>
                  <input type="text" name="order_id1" style="width: 200px;" id="txtZip1" class="TextBox">
                  &nbsp;(Required)
                </td>
                <td>
                  <input type="submit" name="btnSubmit1" value="GO"   id="btnSubmit1" class="Button">
                </td>
              </tr>
              <tr>
                <td colspan="3">
                  <hr>
                </td>
              </tr>
              <tr>
                <td>
                  Customer Name:
                </td>
                <td>
                  <input type="text" name="txtName2" style="width: 200px;" id="txtName2" class="TextBox">
                  &nbsp;(Required)
                </td>
                <td>
                </td>
              </tr>
              <tr>
                <td>
                  Order ID:
                </td>
                <td>
                  <input type="text" name="order_id2" style="width: 200px;" id="txtZip2" class="TextBox">
                  &nbsp;(Required)
                </td>
                <td>
                  <input type="submit" name="btnSubmit2" value="GO" id="btnSubmit2" class="Button">
                </td>
              </tr>
              <tr>
                <td colspan="3">
                  <hr>
                </td>
              </tr>
 
            </tbody>
          </table>
          <br>
          <p class="Note">
            <b>
              <font color="#ff0000">
                NOTE:
              </font>
            </b>
            <br>
            <font color="#ff0000">
              Your tracking information is provided immediately upon shipment from us.
              However, depending on your shipping method, it may take up to 3 business
              days (while the package is in transit) before the carrier shows the tracking
              information in their system. Thank you for your patience.
            </font>
          </p>
        </form>
     <?php }?>
      </td>
    </tr>
  </tbody>
</table>
          </div>
        </span>
      </td>
    </tr>
  </tbody>
</table>